import React from 'react';
import {Route,Redirect,withRouter} from 'react-router-dom';
class RouterConfig extends React.Component{
    loginUser = (evnet)=>{
        this.props.homeStore.loginServer()
            .then(res=>{
                this.props.history.push('/Main/home')
            })
    }
    render(){
        return(
            <div>
                登录<input type="text"/>
                密码<input type="text"/>
                <button onClick={this.loginUser}>登录</button>
            </div>
        )
    }
}
export default withRouter(RouterConfig)